package online.abor.day12_study.provider_consumer.baozi_plus;

import lombok.Data;

import java.util.ArrayList;
import java.util.Random;

@Data
public class BaoZiBox {
    private ArrayList<Baozi> baoziList = new ArrayList<>();

    public Integer getCount() {
        return baoziList.size();
    }

    public Baozi getBaozi() {
        return baoziList.get(new Random().nextInt(baoziList.size()));
    }
}
